<template>
<!-- 
  缓存路由组件：
     - 路由的切换过程是组件的挂载和卸载的过程,如果有的路由切换的比较频繁,则不希望他频繁的卸载和挂载
     - 缓存路由组件使用<keep-alive></keep-alive>包裹<router-view></router-view>

     - include属性，设置某个组件被缓存
 -->
  <keep-alive :include="['Home', 'Login']">
    <router-view></router-view>
  </keep-alive>
</template>

<script>
export default {
  name: "App",
};
</script>

<style>
</style>